package com.lhd._05mvcboot03_1.pojo.dto;

import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import javax.validation.constraints.NotBlank;
import javax.validation.constraints.Size;

/**
 * @author lhd
 * @date 2024/4/28
 * @apiNote
 */
@Data
public class UserArticleDTO {
    @ApiModelProperty(value = "标题")
    @NotBlank(message = "标题不能为空白")
    @Size(min = 1, max = 20)
    private String title;

    @ApiModelProperty(value = "内容")
    @NotBlank(message = "内容不能为空白")
    @Size(min = 10, max = 500)
    private String content;
}
